import sys
from PyQt5.QtWidgets import QApplication
from PyQt5.QtCore import Qt
from ui.main_window import MainWindow
from PyQt5.QtGui import QFont


if __name__ == "__main__":
    QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)  
    app = QApplication(sys.argv)

    font = QFont("Microsoft Yahei", 8)
    app.setFont(font)
    window = MainWindow()
    window.show()
    sys.exit(app.exec_())